import request from '../../utils/request';
import { OnionUtils } from '../../utils/onion-utils';

//域列表查询
export const listDomainByPage = queryData => {
    return request({
        url: '/api/appic/domain/page',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'queryData'},
        buildType : 'queryData',
        data: queryData
    });
};

//域列表查询
export const listDomain = queryData => {
    return request({
        url: '/api/appic/domain/list',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'queryData'},
        buildType : 'queryData',
        data: queryData
    });
};

//保存域信息
export const saveDomain = formData => {
    return request({
        url: '/api/appic/domain/save',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'formData'},
        data: formData
    });
};

//查询域信息
export const getDomain = paramData => {
    return request({
        url: '/api/appic/domain/get',
        method: 'post',
        header:{'Content-Type':'application/json', 'Build-Type':'formData'},
        data: paramData
    });
};

//删除域信息
export const deleteDomain = paramData => {
    return request({
        url: '/api/appic/domain/delete',
        method: 'post',
        headers:{'Content-Type':'application/json', 'Build-Type':'formData'},
        data: paramData
    });
};